package com.pizzaria.servlet;

public class ListResource {
	public static String getDivList(String type, long id, String label){
		return "<div id='item" + id + "' class='list-item' ondblclick='javascript: window.location = \"" + type + ".jsp?id=" + id + "\";'><input type='checkbox' id='" + id + "'><label for='" + id + "'>" + label + "</label></div>";
	}
	
	public static String getDivList(String type, long id, String label, boolean entregue){
		return "<div id='item" + id + "' class='list-item " + (entregue ? "pedido-entregue" : "") + "' ondblclick='javascript: window.location = \"" + type + ".jsp?id=" + id + "\";'><input type='checkbox' id='" + id + "'><label for='" + id + "'>" + label + "</label><input type='checkbox' disabled='disabled' " + (entregue ? "checked='checked'" : "") + "></div>";
	}
}
